<template>
  <van-area title="标题" :area-list="areaList" @confirm='queding' @cancel='quxiao'/>
</template>

<script>
import Vue from 'vue';
import { Area } from 'vant';
import { areaList } from '@vant/area-data';

Vue.use(Area);
export default {
    data(){
        return{
            areaList,
        }
    },
    mounted(){
        console.log(areaList);
    },
    methods:{
        queding(val){
            
            this.$store.commit("citymaps",val)
             this.$router.go("-1")
        },
        quxiao(val){
            console.log(val);
            this.$router.go("-1")
        }
    },


}
</script>

<style lang='stylus' scoped>

</style>